package itheima.zuoye.test7;

public  abstract class Teacher {
    private String name;
    private String sex;
    private int age;

    public Teacher() {
    }

    public Teacher(String name, String sex, int age) {
        this.name = name;
        this.sex = sex;
        this.age = age;
    }
    public abstract void work();

    @Override
    public String toString() {
        return "Teacher{" +
                "name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                '}';
    }
}
